<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.model.User"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.DepartmentDao"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<%
{
DepartmentDao theDepartmentDao = DaoCreator.createDepartmentDao();
User theLoginUser = (User) session.getAttribute(Constants.SESSION_USER);
List<User> depart2UserList = theDepartmentDao.getUsersByDepartment2ID(theLoginUser.getDepartment2ID(), true, 
		Constants.ROLE_TYPE_KEYUAN | Constants.ROLE_TYPE_FUKEZHANG | Constants.ROLE_TYPE_KEYUAN);
%>
<table style="margin-left: 30px" border="0" cellpadding="0" cellspacing="0">
	<%
	boolean isBreak = false;
	for (int i = 0; i < 1000; i++) {
		if (isBreak) {
			break;
		}
	%>
	<tr>
	<%
		for (int j = 0; j < 10; j++) {
			int index = i * 10 + j;
			if (index >= depart2UserList.size()) {
				isBreak = true;
				break;
			}
			User depart2User = depart2UserList.get(index);
	%>
		<td style="border-bottom:1px #E3E3E3 dashed;border-right:1px #E3E3E3 dashed;" valign="top" align="center">
			<input type="checkbox" name="informedUserID" value="<%=depart2User.getId()%>" style="margin: 2px" />
			<span><%=depart2User.getName()%></span>
		</td>
	<%
		}
	%>
	</tr>
	<%
	}
	%>
</table>
<%
}
%>